package cn.zjitc.design.principle.dependenceinversion;

public class Tom {
    /*public void studyJavaCourse(){
        System.out.println("Tom在学习Java课程");
    }
    public void studyFECourse(){
        System.out.println("Tom在学习FE课程");
    }*/
    /*public void studyIMoocCourse(ICourse iCourse) {
        iCourse.studyCourse();
    }*/

    private ICourse iCourse;

    /*public Tom(ICourse iCourse) {
        this.iCourse = iCourse;
    }*/

    public void studyIMoocCourse() {
        iCourse.studyCourse();
    }

    public void setiCourse(ICourse iCourse) {
        this.iCourse = iCourse;
    }
}
